package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * TODO
 *
 * @Author nmy
 * @Date 2025/10/29 19:58
 */
@Data
public class NursingTaskPageDto {
    /*
    页码
     */
    private Integer pageNum;
    /*
    每页记录数
     */
    private Integer pageSize;

    /*
    老人姓名
     */
    private String elderName;

    /*
    结束时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    /*
    护理员id
     */
    private Integer nurseId;

    /*
    护理项目id
     */
    private Integer projectId;

    /*
    开始时间
     */

//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /*
    状态(1待执行,2已执行3,已关闭)
     */
    private Integer status;
}
